const {ccclass, property} = cc._decorator;

export default class Message {
    // 类型
    Type: number;
    // 命令
    Command: number;
    // 参数
    Content: any;

    constructor(Type, Command, Content) {
        this.Type = Type;
        this.Command = Command;
        this.Content = Content;
    }
}

export class MessageType {
    // 类型
    static Type_UI = 1;  
    static Type_NPC = 2; 
    static Type_Enemy = 3;
    static Type_Audio = 4;
    // 命令
    static UI_RefreshHP = 101;  // 刷新血量
    static UI_RefreshScore = 102;  // 刷新得分
    static UI_RefreshInventory = 103;  // 刷新背包
}